home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / GXErrors.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  25.6 KB  |  687 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXErrors.p
  3.  
  4.      Contains:    QuickDraw GX error constants and debugging routines
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT GXErrors;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __GXERRORS__}
  27. {$SETC __GXERRORS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC GXErrorsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __CONDITIONALMACROS__}
  34. {$I ConditionalMacros.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __MIXEDMODE__}
  37. {$I MixedMode.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __GXTYPES__}
  40. {$I GXTypes.p}
  41. {$ENDC}
  42.  
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48.  
  49. CONST
  50.     gxFirstSystemError            = -27999;                        {  0xffff92a1  }
  51.     gxFirstFatalError            = -27999;
  52.     gxLastFatalError            = -27951;
  53.     gxFirstNonfatalError        = -27950;
  54.     gxFirstFontScalerError        = -27900;
  55.     gxLastFontScalerError        = -27851;
  56.     gxFirstParameterError        = -27850;
  57.     gxFirstImplementationLimitError = -27800;
  58.     gxFirstSystemDebuggingError    = -27700;
  59.     gxLastSystemError            = -27000;                        {  0xffff9688  }
  60.     gxFirstLibraryError            = 1048576;                        {  0x00100000  }
  61.     gxLastLibraryError            = 2097151;                        {  0x001fffff  }
  62.     gxFirstAppError                = 2097152;                        {  0x00200000  }
  63.     gxLastAppError                = 4194303;                        {  0x003fffff  }
  64.     gxFirstSystemWarning        = -26999;                        {  0xffff9689  }
  65.     gxFirstResultOutOfRangeWarning = -26950;
  66.     gxFirstParameterOutOfRangeWarning = -26900;
  67.     gxFirstFontScalerWarning    = -26850;
  68.     gxFirstSystemDebuggingWarning = -26700;
  69.     gxLastSystemWarning            = -26000;                        {  0xffff9a70  }
  70.     gxFirstLibraryWarning        = 4194304;                        {  0x00400000  }
  71.     gxLastLibraryWarning        = 5242879;                        {  0x004fffff  }
  72.     gxFirstAppWarning            = 5242880;                        {  0x00500000  }
  73.     gxLastAppWarning            = 7340031;                        {  0x006fffff  }
  74.     gxFirstSystemNotice            = -25999;                        {  0xffff9a71  }
  75.     gxLastSystemNotice            = -25500;                        {  0xffff9c64  }
  76.     gxFirstLibraryNotice        = 7340032;                        {  0x00700000  }
  77.     gxLastLibraryNotice            = 7602175;                        {  0x0073ffff  }
  78.     gxFirstAppNotice            = 7602176;                        {  0x00740000  }
  79.     gxLastAppNotice                = 8388607;                        {  0x007fffff  }
  80.  
  81.                                                                 {  truly fatal errors  }
  82.     out_of_memory                = -27999;
  83.     internal_fatal_error        = -27998;
  84.     no_outline_font_found        = -27997;
  85.     not_enough_memory_for_graphics_client_heap = -27996;
  86.     could_not_create_backing_store = -27995;                    {  internal errors  }
  87.     internal_error                = -27950;
  88.     internal_font_error            = -27949;
  89.     internal_layout_error        = -27948;                        {  recoverable errors  }
  90.     could_not_dispose_backing_store = -27946;
  91.     unflattening_interrupted_by_client = -27945;                {  font manager errors  }
  92.     font_cannot_be_changed        = -27944;
  93.     illegal_font_parameter        = -27943;                        {  gxFont scaler errors  }
  94.     null_font_scaler_context    = -27900;
  95.     null_font_scaler_input        = -27899;
  96.     invalid_font_scaler_context    = -27898;
  97.     invalid_font_scaler_input    = -27897;
  98.     invalid_font_scaler_font_data = -27896;
  99.     font_scaler_newblock_failed    = -27895;
  100.     font_scaler_getfonttable_failed = -27894;
  101.     font_scaler_bitmap_allocation_failed = -27893;
  102.     font_scaler_outline_allocation_failed = -27892;
  103.     required_font_scaler_table_missing = -27891;
  104.     unsupported_font_scaler_outline_format = -27890;
  105.     unsupported_font_scaler_stream_format = -27889;
  106.     unsupported_font_scaler_font_format = -27888;
  107.     font_scaler_hinting_error    = -27887;
  108.     font_scaler_rasterizer_error = -27886;
  109.     font_scaler_internal_error    = -27885;
  110.     font_scaler_invalid_matrix    = -27884;
  111.     font_scaler_fixed_overflow    = -27883;
  112.     font_scaler_api_version_mismatch = -27882;
  113.     font_scaler_streaming_aborted = -27881;
  114.     unknown_font_scaler_error    = -27880;                        {  bad parameters  }
  115.     parameter_is_nil            = -27850;
  116.     shape_is_nil                = -27849;
  117.     style_is_nil                = -27848;
  118.     transform_is_nil            = -27847;
  119.     ink_is_nil                    = -27846;
  120.     transferMode_is_nil            = -27845;
  121.     color_is_nil                = -27844;
  122.     colorProfile_is_nil            = -27843;
  123.     colorSet_is_nil                = -27842;
  124.     spoolProcedure_is_nil        = -27841;
  125.     tag_is_nil                    = -27840;
  126.     type_is_nil                    = -27839;
  127.     mapping_is_nil                = -27838;
  128.     invalid_viewDevice_reference = -27837;
  129.     invalid_viewGroup_reference    = -27836;
  130.     invalid_viewPort_reference    = -27835;                        {  implementation limits, these should be right before the debugging errors  }
  131.     number_of_contours_exceeds_implementation_limit = -27800;
  132.     number_of_points_exceeds_implementation_limit = -27799;
  133.     size_of_polygon_exceeds_implementation_limit = -27798;
  134.     size_of_path_exceeds_implementation_limit = -27797;
  135.     size_of_text_exceeds_implementation_limit = -27796;
  136.     size_of_bitmap_exceeds_implementation_limit = -27795;
  137.     number_of_colors_exceeds_implementation_limit = -27794;
  138.     procedure_not_reentrant        = -27793;
  139.  
  140.  
  141.  
  142.                                                                 {  internal debugging errors  }
  143.     functionality_unimplemented    = -27700;
  144.     clip_to_frame_shape_unimplemented = -27699;                    {  font parameter debugging errors  }
  145.     illegal_font_storage_type    = -27698;
  146.     illegal_font_storage_reference = -27697;
  147.     illegal_font_attributes        = -27696;                        {  parameter debugging errors  }
  148.     parameter_out_of_range        = -27695;
  149.     inconsistent_parameters        = -27694;
  150.     index_is_less_than_zero        = -27693;
  151.     index_is_less_than_one        = -27692;
  152.     count_is_less_than_zero        = -27691;
  153.     count_is_less_than_one        = -27690;
  154.     contour_is_less_than_zero    = -27689;
  155.     length_is_less_than_zero    = -27688;
  156.     invalid_client_reference    = -27687;
  157.     invalid_graphics_heap_start_pointer = -27686;
  158.     invalid_nongraphic_globals_pointer = -27685;
  159.     colorSpace_out_of_range        = -27684;
  160.     pattern_lattice_out_of_range = -27683;
  161.     frequency_parameter_out_of_range = -27682;
  162.     tinting_parameter_out_of_range = -27681;
  163.     method_parameter_out_of_range = -27680;
  164.     space_may_not_be_indexed    = -27679;
  165.     glyph_index_too_small        = -27678;
  166.     no_glyphs_added_to_font        = -27677;
  167.     glyph_not_added_to_font        = -27676;
  168.     point_does_not_intersect_bitmap = -27675;
  169.     required_font_table_not_present = -27674;
  170.     unknown_font_table_format    = -27673;                        {  the styles encoding is not present in the font  }
  171.     shapeFill_not_allowed        = -27672;
  172.     inverseFill_face_must_set_clipLayer_flag = -27671;
  173.     invalid_transferMode_colorSpace = -27670;
  174.     colorProfile_must_be_nil    = -27669;
  175.     bitmap_pixel_size_must_be_1    = -27668;
  176.     empty_shape_not_allowed        = -27667;
  177.     ignorePlatformShape_not_allowed = -27666;
  178.     nil_style_in_glyph_not_allowed = -27665;
  179.     complex_glyph_style_not_allowed = -27664;
  180.     invalid_mapping                = -27663;
  181.     cannot_set_item_shapes_to_nil = -27662;
  182.     cannot_use_original_item_shapes_when_growing_picture = -27661;
  183.     cannot_add_unspecified_new_glyphs = -27660;
  184.     cannot_dispose_locked_tag    = -27659;
  185.     cannot_dispose_locked_shape    = -27658;                        {  restricted access  }
  186.     shape_access_not_allowed    = -27657;
  187.     colorSet_access_restricted    = -27656;
  188.     colorProfile_access_restricted = -27655;
  189.     tag_access_restricted        = -27654;
  190.     viewDevice_access_restricted = -27653;
  191.     graphic_type_does_not_have_a_structure = -27652;
  192.     style_run_array_does_not_match_number_of_characters = -27651;
  193.     rectangles_cannot_be_inserted_into = -27650;
  194.     unknown_graphics_heap        = -27649;
  195.     graphics_routine_selector_is_obsolete = -27648;
  196.     cannot_set_graphics_client_memory_without_setting_size = -27647;
  197.     graphics_client_memory_too_small = -27646;
  198.     graphics_client_memory_is_already_allocated = -27645;
  199.     viewPort_is_a_window        = -27644;                        {  wrong type/bad reference  }
  200.     illegal_type_for_shape        = -27643;
  201.     shape_does_not_contain_a_bitmap = -27642;
  202.     shape_does_not_contain_text    = -27641;
  203.     picture_expected            = -27640;
  204.     bitmap_is_not_resizable        = -27639;
  205.     shape_may_not_be_a_bitmap    = -27638;
  206.     shape_may_not_be_a_picture    = -27637;
  207.     graphic_type_does_not_contain_points = -27636;
  208.     graphic_type_does_not_have_multiple_contours = -27635;
  209.     graphic_type_cannot_be_mapped = -27634;
  210.     graphic_type_cannot_be_moved = -27633;
  211.     graphic_type_cannot_be_scaled = -27632;
  212.     graphic_type_cannot_be_rotated = -27631;
  213.     graphic_type_cannot_be_skewed = -27630;
  214.     graphic_type_cannot_be_reset = -27629;
  215.     graphic_type_cannot_be_dashed = -27628;
  216.     graphic_type_cannot_be_reduced = -27627;
  217.     graphic_type_cannot_be_inset = -27626;
  218.     shape_cannot_be_inverted    = -27625;
  219.     shape_does_not_have_area    = -27624;
  220.     shape_does_not_have_length    = -27623;
  221.     first_glyph_advance_must_be_absolute = -27622;
  222.     picture_cannot_contain_itself = -27621;
  223.     viewPort_cannot_contain_itself = -27620;
  224.     cannot_set_unique_items_attribute_when_picture_contains_items = -27619;
  225.     layer_style_cannot_contain_a_face = -27618;
  226.     layer_glyph_shape_cannot_contain_nil_styles = -27617;        {  validation errors  }
  227.     object_wrong_type            = -27616;
  228.     shape_wrong_type            = -27615;
  229.     style_wrong_type            = -27614;
  230.     ink_wrong_type                = -27613;
  231.     transform_wrong_type        = -27612;
  232.     device_wrong_type            = -27611;
  233.     port_wrong_type                = -27610;                        {  validation cache errors  }
  234.     shape_cache_wrong_type        = -27609;
  235.     style_cache_wrong_type        = -27608;
  236.     ink_cache_wrong_type        = -27607;
  237.     transform_cache_wrong_type    = -27606;
  238.     port_cache_wrong_type        = -27605;
  239.     shape_cache_parent_mismatch    = -27604;
  240.     style_cache_parent_mismatch    = -27603;
  241.     ink_cache_parent_mismatch    = -27602;
  242.     transform_cache_parent_mismatch = -27601;
  243.     port_cache_parent_mismatch    = -27600;
  244.     invalid_shape_cache_port    = -27599;
  245.     invalid_shape_cache_device    = -27598;
  246.     invalid_ink_cache_port        = -27597;
  247.     invalid_ink_cache_device    = -27596;
  248.     invalid_style_cache_port    = -27595;
  249.     invalid_style_cache_device    = -27594;
  250.     invalid_transform_cache_port = -27593;
  251.     invalid_transform_cache_device = -27592;
  252.     recursive_caches            = -27591;                        {  validation shape cache errors  }
  253.     invalid_fillShape_ownerCount = -27590;
  254.     recursive_fillShapes        = -27589;                        {  validation memory block errors  }
  255.     indirect_memory_block_too_small = -27588;
  256.     indirect_memory_block_too_large = -27587;
  257.     unexpected_nil_pointer        = -27586;
  258.     bad_address                    = -27585;                        {  validation object errors  }
  259.     no_owners                    = -27584;
  260.     invalid_pointer                = -27583;
  261.     invalid_seed                = -27582;
  262.     invalid_frame_seed            = -27581;
  263.     invalid_text_seed            = -27580;
  264.     invalid_draw_seed            = -27579;
  265.     bad_private_flags            = -27578;                        {  validation path and polygon errors  }
  266.     invalid_vector_count        = -27577;
  267.     invalid_contour_count        = -27576;                        {  validation bitmap errors  }
  268.     bitmap_ptr_too_small        = -27575;
  269.     bitmap_ptr_not_aligned        = -27574;
  270.     bitmap_rowBytes_negative    = -27573;
  271.     bitmap_width_negative        = -27572;
  272.     bitmap_height_negative        = -27571;
  273.     invalid_pixelSize            = -27570;
  274.     bitmap_rowBytes_too_small    = -27569;
  275.     bitmap_rowBytes_not_aligned    = -27568;
  276.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = -27567; {  validation bitmap image errors  }
  277.     invalid_bitImage_fileOffset    = -27566;
  278.     invalid_bitImage_owners        = -27565;
  279.     invalid_bitImage_rowBytes    = -27564;
  280.     invalid_bitImage_internal_flag = -27563;                    {  validation text errors  }
  281.     text_bounds_cache_wrong_size = -27562;
  282.     text_metrics_cache_wrong_size = -27561;
  283.     text_index_cache_wrong_size    = -27560;                        {  validation glyph errors  }
  284.     glyph_run_count_negative    = -27559;
  285.     glyph_run_count_zero        = -27558;
  286.     glyph_run_counts_do_not_sum_to_character_count = -27557;
  287.     glyph_first_advance_bit_set_not_allowed = -27556;
  288.     glyph_tangent_vectors_both_zero = -27555;                    {  validation layout errors  }
  289.     layout_run_length_negative    = -27554;
  290.     layout_run_length_zero        = -27553;
  291.     layout_run_level_negative    = -27552;
  292.     layout_run_lengths_do_not_sum_to_text_length = -27551;        {  validation picture errors  }
  293.     bad_shape_in_picture        = -27550;
  294.     bad_style_in_picture        = -27549;
  295.     bad_ink_in_picture            = -27548;
  296.     bad_transform_in_picture    = -27547;
  297.     bad_shape_cache_in_picture    = -27546;
  298.     bad_seed_in_picture            = -27545;
  299.     invalid_picture_count        = -27544;                        {  validation text face errors  }
  300.     bad_textLayer_count            = -27543;
  301.     bad_fillType_in_textFace    = -27542;
  302.     bad_style_in_textFace        = -27541;
  303.     bad_transform_in_textFace    = -27540;                        {  validation transform errors  }
  304.     invalid_matrix_flag            = -27539;
  305.     transform_clip_missing        = -27538;                        {  validation font cache errors  }
  306.     metrics_wrong_type            = -27537;
  307.     metrics_point_size_probably_bad = -27536;
  308.     scalar_block_wrong_type        = -27535;
  309.     scalar_block_parent_mismatch = -27534;
  310.     scalar_block_too_small        = -27533;
  311.     scalar_block_too_large        = -27532;
  312.     invalid_metrics_range        = -27531;
  313.     invalid_metrics_flags        = -27530;
  314.     metrics_maxWidth_probably_bad = -27529;
  315.     font_wrong_type                = -27528;
  316.     font_wrong_size                = -27527;
  317.     invalid_font_platform        = -27526;
  318.     invalid_lookup_range        = -27525;
  319.     invalid_lookup_platform        = -27524;
  320.     font_not_in_font_list        = -27523;
  321.     metrics_not_in_metrics_list    = -27522;                        {  validation view device errors  }
  322.     bad_device_private_flags    = -27521;
  323.     bad_device_attributes        = -27520;
  324.     invalid_device_number        = -27519;
  325.     invalid_device_viewGroup    = -27518;
  326.     invalid_device_bounds        = -27517;
  327.     invalid_bitmap_in_device    = -27516;                        {  validation color set errors  }
  328.     colorSet_wrong_type            = -27515;
  329.     invalid_colorSet_viewDevice_owners = -27514;
  330.     invalid_colorSet_colorSpace    = -27513;
  331.     invalid_colorSet_count        = -27512;                        {  validation color profile errors  }
  332.     colorProfile_wrong_type        = -27511;
  333.     invalid_colorProfile_flags    = -27510;
  334.     invalid_colorProfile_response_count = -27509;                {  validation internal backing store errors  }
  335.     backing_free_parent_mismatch = -27508;
  336.     backing_store_parent_mismatch = -27507;
  337.  
  338.  
  339.                                                                 {  warnings about warnings  }
  340.     warning_stack_underflow        = -26999;
  341.     warning_stack_overflow        = -26998;
  342.     notice_stack_underflow        = -26997;
  343.     notice_stack_overflow        = -26996;
  344.     about_to_grow_heap            = -26995;
  345.     about_to_unload_objects        = -26994;                        {  result went out of range  }
  346.     map_shape_out_of_range        = -26950;
  347.     move_shape_out_of_range        = -26949;
  348.     scale_shape_out_of_range    = -26948;
  349.     rotate_shape_out_of_range    = -26947;
  350.     skew_shape_out_of_range        = -26946;
  351.     map_transform_out_of_range    = -26945;
  352.     move_transform_out_of_range    = -26944;
  353.     scale_transform_out_of_range = -26943;
  354.     rotate_transform_out_of_range = -26942;
  355.     skew_transform_out_of_range    = -26941;
  356.     map_points_out_of_range        = -26940;                        {  gave a parameter out of range  }
  357.     contour_out_of_range        = -26900;
  358.     index_out_of_range_in_contour = -26899;
  359.     picture_index_out_of_range    = -26898;
  360.     color_index_requested_not_found = -26897;
  361.     colorSet_index_out_of_range    = -26896;
  362.     index_out_of_range            = -26895;
  363.     count_out_of_range            = -26894;
  364.     length_out_of_range            = -26893;
  365.     font_table_index_out_of_range = -26892;
  366.     font_glyph_index_out_of_range = -26891;
  367.     point_out_of_range            = -26890;
  368.     profile_response_out_of_range = -26889;                        {  gxFont scaler warnings  }
  369.     font_scaler_no_output        = -26850;
  370.     font_scaler_fake_metrics    = -26849;
  371.     font_scaler_fake_linespacing = -26848;
  372.     font_scaler_glyph_substitution = -26847;
  373.     font_scaler_no_kerning_applied = -26846;                    {  might not be what you expected  }
  374.     character_substitution_took_place = -26845;
  375.     unable_to_get_bounds_on_multiple_devices = -26844;
  376.     font_language_not_found        = -26843;
  377.     font_not_found_during_unflattening = -26842;                { storage  }
  378.     unrecognized_stream_version    = -26841;
  379.     bad_data_in_stream            = -26840;
  380.  
  381.  
  382.                                                                 {  nonsense data  }
  383.     new_shape_contains_invalid_data = -26700;
  384.     new_tag_contains_invalid_data = -26699;
  385.     extra_data_passed_was_ignored = -26698;
  386.     font_table_not_found        = -26697;
  387.     font_name_not_found            = -26696;                        {  doesn't make sense to do  }
  388.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = -26695;
  389.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = -26694;
  390.     cannot_dispose_default_shape = -26693;
  391.     cannot_dispose_default_style = -26692;
  392.     cannot_dispose_default_ink    = -26691;
  393.     cannot_dispose_default_transform = -26690;
  394.     cannot_dispose_default_colorProfile = -26689;
  395.     cannot_dispose_default_colorSet = -26688;
  396.     shape_direct_attribute_not_set = -26687;                    {  couldn't find what you were looking for  }
  397.     point_does_not_intersect_port = -26686;
  398.     cannot_dispose_non_font        = -26685;
  399.     face_override_style_font_must_match_style = -26684;
  400.     union_of_area_and_length_returns_area_only = -26683;
  401.     insufficient_coordinate_space_for_new_device = -26682;        {  other  }
  402.     shape_passed_has_no_bounds    = -26681;
  403.     tags_of_type_flst_removed    = -26680;
  404.     translator_not_installed_on_this_grafport = -26679;
  405.  
  406.     parameters_have_no_effect    = -25999;
  407.     attributes_already_set        = -25998;
  408.     caps_already_set            = -25997;
  409.     clip_already_set            = -25996;
  410.     color_already_set            = -25995;
  411.     curve_error_already_set        = -25994;
  412.     dash_already_set            = -25993;
  413.     default_colorProfile_already_set = -25992;
  414.     default_ink_already_set        = -25991;
  415.     default_transform_already_set = -25990;
  416.     default_shape_already_set    = -25989;
  417.     default_style_already_set    = -25988;
  418.     dither_already_set            = -25987;
  419.     encoding_already_set        = -25986;
  420.     face_already_set            = -25985;
  421.     fill_already_set            = -25984;
  422.     font_already_set            = -25983;
  423.     font_variations_already_set    = -25982;
  424.     glyph_positions_are_already_set = -25981;
  425.     glyph_tangents_are_already_set = -25980;
  426.     halftone_already_set        = -25979;
  427.     hit_test_already_set        = -25978;
  428.     ink_already_set                = -25977;
  429.     join_already_set            = -25976;
  430.     justification_already_set    = -25975;
  431.     mapping_already_set            = -25974;
  432.     pattern_already_set            = -25973;
  433.     pen_already_set                = -25972;
  434.     style_already_set            = -25971;
  435.     tag_already_set                = -25970;
  436.     text_attributes_already_set    = -25969;
  437.     text_size_already_set        = -25968;
  438.     transfer_already_set        = -25967;
  439.     translator_already_installed_on_this_grafport = -25966;
  440.     transform_already_set        = -25965;
  441.     type_already_set            = -25964;
  442.     validation_level_already_set = -25963;
  443.     viewPorts_already_set        = -25962;
  444.     viewPort_already_in_viewGroup = -25961;
  445.     viewDevice_already_in_viewGroup = -25960;
  446.     geometry_unaffected            = -25959;
  447.     mapping_unaffected            = -25958;
  448.     tags_in_shape_ignored        = -25957;
  449.     shape_already_in_primitive_form = -25956;
  450.     shape_already_in_simple_form = -25955;
  451.     shape_already_broken        = -25954;
  452.     shape_already_joined        = -25953;
  453.     cache_already_cleared        = -25952;
  454.     shape_not_disposed            = -25951;
  455.     style_not_disposed            = -25950;
  456.     ink_not_disposed            = -25949;
  457.     transform_not_disposed        = -25948;
  458.     colorSet_not_disposed        = -25947;
  459.     colorProfile_not_disposed    = -25946;
  460.     font_not_disposed            = -25945;
  461.     glyph_tangents_have_no_effect = -25944;
  462.     glyph_positions_determined_by_advance = -25943;
  463.     transform_viewPorts_already_set = -25942;
  464.     directShape_attribute_set_as_side_effect = -25941;
  465.     lockShape_called_as_side_effect = -25940;
  466.     lockTag_called_as_side_effect = -25939;
  467.     shapes_unlocked_as_side_effect = -25938;
  468.     shape_not_locked            = -25937;
  469.     tag_not_locked                = -25936;
  470.     profile_not_locked            = -25936;
  471.     lockProfile_called_as_side_effect = -25939;
  472.     disposed_dead_caches        = -25935;
  473.     disposed_live_caches        = -25934;
  474.     low_on_memory                = -25933;
  475.     very_low_on_memory            = -25932;
  476.     transform_references_disposed_viewPort = -25931;
  477.  
  478.  
  479.  
  480. TYPE
  481.     gxGraphicsError                        = LONGINT;
  482.     gxGraphicsWarning                    = LONGINT;
  483.     gxGraphicsNotice                    = LONGINT;
  484. {$IFC TYPED_FUNCTION_POINTERS}
  485.     gxUserErrorProcPtr = PROCEDURE(status: gxGraphicsError; refcon: LONGINT); C;
  486. {$ELSEC}
  487.     gxUserErrorProcPtr = ProcPtr;
  488. {$ENDC}
  489.  
  490. {$IFC TYPED_FUNCTION_POINTERS}
  491.     gxUserWarningProcPtr = PROCEDURE(status: gxGraphicsWarning; refcon: LONGINT); C;
  492. {$ELSEC}
  493.     gxUserWarningProcPtr = ProcPtr;
  494. {$ENDC}
  495.  
  496. {$IFC TYPED_FUNCTION_POINTERS}
  497.     gxUserNoticeProcPtr = PROCEDURE(status: gxGraphicsNotice; refcon: LONGINT); C;
  498. {$ELSEC}
  499.     gxUserNoticeProcPtr = ProcPtr;
  500. {$ENDC}
  501.  
  502.     gxUserErrorUPP = UniversalProcPtr;
  503.     gxUserWarningUPP = UniversalProcPtr;
  504.     gxUserNoticeUPP = UniversalProcPtr;
  505.  
  506. CONST
  507.     uppgxUserErrorProcInfo = $000003C1;
  508.     uppgxUserWarningProcInfo = $000003C1;
  509.     uppgxUserNoticeProcInfo = $000003C1;
  510.  
  511. FUNCTION NewgxUserErrorProc(userRoutine: gxUserErrorProcPtr): gxUserErrorUPP;
  512.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  513.     INLINE $2E9F;
  514.     {$ENDC}
  515.  
  516. FUNCTION NewgxUserWarningProc(userRoutine: gxUserWarningProcPtr): gxUserWarningUPP;
  517.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  518.     INLINE $2E9F;
  519.     {$ENDC}
  520.  
  521. FUNCTION NewgxUserNoticeProc(userRoutine: gxUserNoticeProcPtr): gxUserNoticeUPP;
  522.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  523.     INLINE $2E9F;
  524.     {$ENDC}
  525.  
  526. PROCEDURE CallgxUserErrorProc(status: gxGraphicsError; refcon: LONGINT; userRoutine: gxUserErrorUPP);
  527.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  528.     {To be implemented:  Glue to move parameters into registers.}
  529.     {$ENDC}
  530.  
  531. PROCEDURE CallgxUserWarningProc(status: gxGraphicsWarning; refcon: LONGINT; userRoutine: gxUserWarningUPP);
  532.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  533.     {To be implemented:  Glue to move parameters into registers.}
  534.     {$ENDC}
  535.  
  536. PROCEDURE CallgxUserNoticeProc(status: gxGraphicsNotice; refcon: LONGINT; userRoutine: gxUserNoticeUPP);
  537.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  538.     {To be implemented:  Glue to move parameters into registers.}
  539.     {$ENDC}
  540.  
  541. TYPE
  542.     gxUserErrorFunction                    = gxUserErrorProcPtr;
  543.     gxUserWarningFunction                = gxUserWarningProcPtr;
  544.     gxUserNoticeFunction                = gxUserNoticeProcPtr;
  545.  
  546.  
  547. CONST
  548.     common_colors_not_initialized = 1048576;
  549.     no_open_picture                = 1048577;
  550.     picture_already_open        = 1048578;
  551.     no_open_poly                = 1048579;
  552.     poly_already_open            = 1048580;
  553.     no_open_region                = 1048581;
  554.     region_already_open            = 1048582;
  555.     no_active_picture            = 1048583;
  556.  
  557.     no_picture_drawn            = 4194304;
  558.     polygons_have_different_size_contours = 4194305;
  559.     graphic_type_cannot_be_specifed_by_four_values = 4194306;
  560.     graphic_type_cannot_be_specifed_by_six_values = 4194307;
  561.     point_expected                = 4194308;
  562.     line_or_rectangle_expected    = 4194309;
  563.     curve_expected                = 4194310;
  564.     graphic_type_does_not_contain_control_bits = 4194311;
  565.     request_exceeds_available_data = 4194312;
  566.     extra_data_unread            = 4194313;
  567.     no_variable_length_user_data_saved = 4194314;
  568.  
  569.     zero_length_string_passed    = 7340032;
  570.  
  571.                                                                 {  These levels tell how to validate routines.  Choose one.  }
  572.     gxNoValidation                = $00;                            {  no validation  }
  573.     gxPublicValidation            = $01;                            {  check parameters to public routines  }
  574.     gxInternalValidation        = $02;                            {  check parameters to internal routines  }
  575.                                                                 {  These levels tell how to validate types.  Choose one.  }
  576.     gxTypeValidation            = $00;                            {  check types of objects  }
  577.     gxStructureValidation        = $10;                            {  check fields of private structures  }
  578.     gxAllObjectValidation        = $20;                            {  check every object over every call  }
  579.                                                                 {  These levels tell how to validate memory manager blocks.  Choose any combination.  }
  580.     gxNoMemoryManagerValidation    = $0000;
  581.     gxApBlockValidation            = $0100;                        {  check the relevant block structures after each memory mgr. call  }
  582.     gxFontBlockValidation        = $0200;                        {  check the system gxHeap as well  }
  583.     gxApHeapValidation            = $0400;                        {  check the memory manager’s gxHeap after every mem. call  }
  584.     gxFontHeapValidation        = $0800;                        {  check the system gxHeap as well  }
  585.     gxCheckApHeapValidation        = $1000;                        {  check the memory manager’s gxHeap if checking routine parameters  }
  586.     gxCheckFontHeapValidation    = $2000;                        {  check the system gxHeap as well  }
  587.  
  588.  
  589. TYPE
  590.     gxValidationLevel                    = LONGINT;
  591.  
  592. CONST
  593.     no_draw_error                = 0;                            {  gxShape type errors  }
  594.     shape_emptyType                = 1;
  595.     shape_inverse_fullType        = 2;
  596.     rectangle_zero_width        = 3;
  597.     rectangle_zero_height        = 4;
  598.     polygon_empty                = 5;
  599.     path_empty                    = 6;
  600.     bitmap_zero_width            = 7;
  601.     bitmap_zero_height            = 8;
  602.     text_empty                    = 9;
  603.     glyph_empty                    = 10;
  604.     layout_empty                = 11;
  605.     picture_empty                = 12;                            {  general gxShape errors  }
  606.     shape_no_fill                = 13;
  607.     shape_no_enclosed_area        = 14;
  608.     shape_no_enclosed_pixels    = 15;
  609.     shape_very_small            = 16;
  610.     shape_very_large            = 17;
  611.     shape_contours_cancel        = 18;                            {  gxStyle errors  }
  612.     pen_too_small                = 19;
  613.     text_size_too_small            = 20;
  614.     dash_empty                    = 21;
  615.     start_cap_empty                = 22;
  616.     pattern_empty                = 23;
  617.     textFace_empty                = 24;
  618.     shape_primitive_empty        = 25;
  619.     shape_primitive_very_small    = 26;                            {  gxInk errors  }
  620.     transfer_equals_noMode        = 27;
  621.     transfer_matrix_ignores_source = 28;
  622.     transfer_matrix_ignores_device = 29;
  623.     transfer_source_reject        = 30;
  624.     transfer_mode_ineffective    = 31;
  625.     colorSet_no_entries            = 32;
  626.     bitmap_colorSet_one_entry    = 33;                            {  gxTransform errors  }
  627.     transform_scale_too_small    = 34;
  628.     transform_map_too_large        = 35;
  629.     transform_move_too_large    = 36;
  630.     transform_scale_too_large    = 37;
  631.     transform_rotate_too_large    = 38;
  632.     transform_perspective_too_large = 39;
  633.     transform_skew_too_large    = 40;
  634.     transform_clip_no_intersection = 41;
  635.     transform_clip_empty        = 42;
  636.     transform_no_viewPorts        = 43;                            {  gxViewPort errors  }
  637.     viewPort_disposed            = 44;
  638.     viewPort_clip_empty            = 45;
  639.     viewPort_clip_no_intersection = 46;
  640.     viewPort_scale_too_small    = 47;
  641.     viewPort_map_too_large        = 48;
  642.     viewPort_move_too_large        = 49;
  643.     viewPort_scale_too_large    = 50;
  644.     viewPort_rotate_too_large    = 51;
  645.     viewPort_perspective_too_large = 52;
  646.     viewPort_skew_too_large        = 53;
  647.     viewPort_viewGroup_offscreen = 54;                            {  gxViewDevice errors  }
  648.     viewDevice_clip_no_intersection = 55;
  649.     viewDevice_scale_too_small    = 56;
  650.     viewDevice_map_too_large    = 57;
  651.     viewDevice_move_too_large    = 58;
  652.     viewDevice_scale_too_large    = 59;
  653.     viewDevice_rotate_too_large    = 60;
  654.     viewDevice_perspective_too_large = 61;
  655.     viewDevice_skew_too_large    = 62;
  656.  
  657.  
  658. TYPE
  659.     gxDrawError                            = LONGINT;
  660. FUNCTION GXGetShapeDrawError(source: gxShape): gxDrawError; C;
  661. PROCEDURE GXValidateAll; C;
  662. PROCEDURE GXValidateColorSet(target: gxColorSet); C;
  663. PROCEDURE GXValidateColorProfile(target: gxColorProfile); C;
  664. PROCEDURE GXValidateGraphicsClient(target: gxGraphicsClient); C;
  665. PROCEDURE GXValidateInk(target: gxInk); C;
  666. PROCEDURE GXValidateShape(target: gxShape); C;
  667. PROCEDURE GXValidateStyle(target: gxStyle); C;
  668. PROCEDURE GXValidateTag(target: gxTag); C;
  669. PROCEDURE GXValidateTransform(target: gxTransform); C;
  670. PROCEDURE GXValidateViewDevice(target: gxViewDevice); C;
  671. PROCEDURE GXValidateViewPort(target: gxViewPort); C;
  672. PROCEDURE GXValidateViewGroup(target: gxViewGroup); C;
  673. FUNCTION GXGetValidation: gxValidationLevel; C;
  674. PROCEDURE GXSetValidation(level: gxValidationLevel); C;
  675. FUNCTION GXGetValidationError(procedureName: CStringPtr; VAR argument: UNIV Ptr; VAR argumentNumber: LONGINT): LONGINT; C;
  676.  
  677. {$ALIGN RESET}
  678. {$POP}
  679.  
  680. {$SETC UsingIncludes := GXErrorsIncludes}
  681.  
  682. {$ENDC} {__GXERRORS__}
  683.  
  684. {$IFC NOT UsingIncludes}
  685.  END.
  686. {$ENDC}
  687.